/* 毕业论文 */
import { request } from './request'

export function _setHotWords (system, hotWordList) {
    return post({
        url: '/setHotWords',
        params: {
            system: system,
            hotWordList: hotWordList
        }
    })
}

/* 获取全部毕业生数据 */
export function _getThesisData (grade, major, team, sno, sname, currentPage, pageSize) {
    return request({
        url: '/thesisInfo/getTheData',
        params: {
            grade: grade,
            major: major,
            team: team,
            sno: sno,
            sname: sname,
            currentPage: currentPage,
            pageSize: pageSize
        }
    })
}


/* 论文批量删除 */
export function _batchDelThesis (ids) {
    return request({
        url: '/thesisInfo/batchDelThesis',
        params: {
            ids: ids
        }
    })
}

/* 论文单个删除 */
export function _delThesis (id) {
    return request({
        url: '/thesisInfo/delThesis',
        params: {
            sNo: id
        }
    })
}


/* 根据学号查询姓名 */
export function _querySname (sno) {
    return request({
        url: '/thesisInfo/querySname',
        params: {
            sNo: sno
        }
    })
}


/* 根据论文题目获取关键词 */
export function _getKeywords (title) {
    return request({
        url: '/thesisInfo/getKeywords',
        params: {
            title: title
        }
    })
}



/* 修改论文数据 */
export function _updateTiltleKeyword (sNo, title, keywords) {
    return request({
        url: '/thesisInfo/updateTiltleKeyword',
        params: {
            sNo: sNo,
            title: title,
            keywords: keywords
        }
    })
}


/* 获取热门词汇 */
export function _getHotWords (majorId) {
    return request({
        url: '/thesisInfo/hotTechnical',
        params: {
            majorId: majorId
        }
    })
}


/* 获取节点和关系数据 */
export function _getNodeData (majorId) {
    return request({
        url: '/thesisInfo/getNodeData',
        params: {
            majorId: majorId
        }
    })
}



